<template>
	<view class="wrap">
		<u-swiper :list="list1" circular :radius="0" :height="200"></u-swiper>
		<view class="module">
			<u-button type="primary" text="地图" @click="onMap"></u-button>
		</view>
	</view>
</template>

<script>
	import {getCateList} from '../../common/api.js'
	export default {
		data() {
			return {
				list1: [
					'https://cube.elemecdn.com/6/94/4d3ea53c084bad6931a56d5158a48jpeg.jpeg',
					'https://fuss10.elemecdn.com/1/34/19aa98b1fcb2781c4fba33d850549jpeg.jpeg',
					'https://fuss10.elemecdn.com/3/28/bbf893f792f03a54408b3b7a7ebf0jpeg.jpeg',
				]
			}
		},
		computed: {
			
		},
		onLoad(){
			this.onServer()
		},
		methods: {
			async onServer(){
				let res = await getCateList(1)
			},
			onMap(){
				console.log(1111);
				uni.navigateTo({
					url: 'pages/map/map'
				});
			}
		}
	}
</script>

<style lang="scss" scoped>
.wrap {
	.module {
		margin-top: 40rpx;
	}
}
</style>
